# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-resolvelib
_pkgname=resolvelib
pkgver=0.5.5
pkgrel=2
pkgdesc='Resolve abstract dependencies into concrete ones.'
url='https://pypi.org/project/resolvelib/#files'
arch=('any')
license=('ISC')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('c2aaee98f9eb70ab8cdc2ecd9da1d17419e28bd2ceabe541a5515d42536fdc40c9da3debea07a15d41ac5c896e06e840a99499e8b522e6ebbb88109179288ba3')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

